package org.shunfeng.service.impl;

import org.shunfeng.dao.CompanyDao;
import org.shunfeng.dao.impl.CompanyDaoImpl;
import org.shunfeng.pojo.Company;
import org.shunfeng.service.CompanyService;

import java.sql.SQLException;
import java.util.List;

public class CompanyServiceImpl implements CompanyService {
    private CompanyDao companyDao = new CompanyDaoImpl();
    @Override
    public List<Company> queryAllCompany() throws SQLException {
        return companyDao.queryAllCompany();
    }
}
